package linkedlist;

/**
 * @author tong
 * @date 2021/12/22 14:28
 * 节点
 */
public class Node<E> {
    E data;
    Node<E> next;

    public Node(E data) {
        this.data = data;
    }

    public Node(E data, Node<E> next) {
        this.data = data;
        this.next = next;
    }


    @Override
    public String toString() {
        return "Node{" +
                "data=" + data +
                ", next=" + next +
                '}';
    }
}
